package com.ruoyi.gateway.handler;

import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.HandlerFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

@Component
public class Eleven52AcHandler implements HandlerFunction<ServerResponse> {
    @Override
    public Mono<ServerResponse> handle(ServerRequest request) {
        System.out.println("🔥 Hello HandlerFunction 被调用了！");
        return ServerResponse.ok().bodyValue("Hello from Eleven52AcHandler");
    }
}
